package com.cody.entity;

import java.util.Date;

/**
 * @author Cody
 * @date 2021/4/8 - 15:02
 */

public class Passage {
    private int passageId;
    private String passageTitle;
    private String passageAuthor;
    private Date passageTime;
    private String passageContent;

    public int getPassageId() {
        return passageId;
    }

    public void setPassageId(int passageId) {
        this.passageId = passageId;
    }

    public String getPassageTitle() {
        return passageTitle;
    }

    public void setPassageTitle(String passageTitle) {
        this.passageTitle = passageTitle;
    }

    public String getPassageAuthor() {
        return passageAuthor;
    }

    public void setPassageAuthor(String passageAuthor) {
        this.passageAuthor = passageAuthor;
    }

    public Date getPassageTime() {
        return passageTime;
    }

    public void setPassageTime(Date passageTime) {
        this.passageTime = passageTime;
    }

    public String getPassageContent() {
        return passageContent;
    }

    public void setPassageContent(String passageContent) {
        this.passageContent = passageContent;
    }

    public Passage(int passageId, String passageTitle, String passageAuthor, Date passageTime, String passageContent) {
        this.passageId = passageId;
        this.passageTitle = passageTitle;
        this.passageAuthor = passageAuthor;
        this.passageTime = passageTime;
        this.passageContent = passageContent;
    }

    public Passage() {
    }

    @Override
    public String toString() {
        return "Passage{" +
                "passageId=" + passageId +
                ", passageTitle='" + passageTitle + '\'' +
                ", passageAuthor='" + passageAuthor + '\'' +
                ", passageTime=" + passageTime +
                ", passageContent='" + passageContent + '\'' +
                '}';
    }
}
